import pageLayout from '@/views/base/layout'

const Test1Page = (resolve) => require(['@/views/demo/test1.vue'], resolve)
const Test2Page = (resolve) => require(['@/views/demo/test2.vue'], resolve)

export default () => {
  return [
    {
      path: '/',
      name: 'pageLayout',
      component: pageLayout,
      children: [
        {
          path: '/test1',
          name: 'test1',
          component: Test1Page
        },
        {
          path: '/test2',
          name: 'test2',
          component: Test2Page
        }
      ]
    }
  ]
}
